package main

import (
	"fmt"
	"sort"
)

func main() {
	s := []float64{1, 2, 3, 4, 5, 6, 7}
	x := float64(5)

	i := sort.SearchFloat64s(s, x)
	if i < len(s) && s[i] == x {
		fmt.Println("找到了")
	} else {
		fmt.Println("没找到")
	}
}
